<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>AdWords::V13::AccountService::AccountServiceWrapper</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
    <script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>     
    <div class="banner">
        <h1>
            <span class="type">Class</span> 
            AdWords::V13::AccountService::AccountServiceWrapper 
            
                <span class="parent">&lt; 
                    
                    Object
                    
                </span>
            
        </h1>
        <ul class="files">
            
            <li><a href="../../../../files/lib/adwords4r/v13/AccountServiceWrapper_rb.html">lib/adwords4r/v13/AccountServiceWrapper.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
    
    <div class="description">
        <p>
Wrapper class for the v13 Account service. This class is automatically
generated.
</p>

    </div>
    

    

    
    

    
    
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
    
        <dt>G</dt>
        <dd>
            <ul>
                
                <li><a href="#method-i-getAccountInfo">getAccountInfo</a>,</li>
                
                <li><a href="#method-i-getClientAccountInfos">getClientAccountInfos</a>,</li>
                
                <li><a href="#method-i-getClientAccounts">getClientAccounts</a>,</li>
                
                <li><a href="#method-i-getMccAlerts">getMccAlerts</a></li>
                
            </ul>
        </dd>
    
        <dt>N</dt>
        <dd>
            <ul>
                
                <li><a href="#method-c-new">new</a></li>
                
            </ul>
        </dd>
    
        <dt>U</dt>
        <dd>
            <ul>
                
                <li><a href="#method-i-updateAccountInfo">updateAccountInfo</a></li>
                
            </ul>
        </dd>
    
    </dl>
    

    

    

    

    

    
    <div class="sectiontitle">Attributes</div>
    <table border='0' cellpadding='5'>
        
        <tr valign='top'>
            <td class='attr-rw'>
                [R]
            </td>
            <td class='attr-name'>api</td>
            <td class='attr-desc'><p>
Holds the <a href="../../API.html">AdWords::API</a> object to which the
wrapper belongs.
</p></td>
        </tr>
        
        <tr valign='top'>
            <td class='attr-rw'>
                [R]
            </td>
            <td class='attr-name'>module</td>
            <td class='attr-desc'><p>
Holds a shortcut to the parent module. Use this to avoid typing the full
class name when creating classes belonging to this service, e.g.
</p>
<pre>
 service_object.module::ClassName
</pre>
<p>
instead of
</p>
<pre>
 AdWords::V13::AccountService::ClassName
</pre>
<p>
This will make it easier to migrate your code between <a
href="../../API.html">API</a> versions.
</p></td>
        </tr>
        
    </table>
    

    
            <div class="sectiontitle">Class Public methods</div>
            
            <div class="method">
                <div class="title" id="method-c-new">
                    
                    <a name="method-c-new"></a><b>new</b>(driver, api)
                    
                </div>
                
                <div class="description">
                  <p>
Constructor for <a
href="AccountServiceWrapper.html">AccountServiceWrapper</a>.
</p>
<p>
Args:
</p>
<ul>
<li><p>
driver: SOAP::RPC::Driver object with the remote SOAP methods for this
service
</p>
</li>
<li><p>
api: the <a href="../../API.html">AdWords::API</a> object to which the
wrapper belongs
</p>
</li>
</ul>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
                        
                    </p>
                    <div id="method-c-new_source" class="dyn-source">
                        <pre>    <span class="ruby-comment cmt"># File lib/adwords4r/v13/AccountServiceWrapper.rb, line 34</span>
34:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">driver</span>, <span class="ruby-identifier">api</span>)
35:           <span class="ruby-ivar">@driver</span> = <span class="ruby-identifier">driver</span>
36:           <span class="ruby-ivar">@api</span> = <span class="ruby-identifier">api</span>
37:           <span class="ruby-ivar">@module</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">AccountService</span>
38:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="sectiontitle">Instance Public methods</div>
            
            <div class="method">
                <div class="title" id="method-i-getAccountInfo">
                    
                    <a name="method-i-getAccountInfo"></a><b>getAccountInfo</b>()
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/AccountService.html#getAccountInfo">getAccountInfo</a>
method of the Account service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/AccountService.html#getAccountInfo">the
online documentation for this method</a>.
</p>
<p>
Returns:
</p>
<ul>
<li><p>
getAccountInfoReturn: <a
href="AccountInfo.html">AdWords::V13::AccountService::AccountInfo</a>
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-getAccountInfo_source')" id="l_method-i-getAccountInfo_source">show</a>
                        
                    </p>
                    <div id="method-i-getAccountInfo_source" class="dyn-source">
                        <pre>    <span class="ruby-comment cmt"># File lib/adwords4r/v13/AccountServiceWrapper.rb, line 49</span>
49:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getAccountInfo</span>()
50:           <span class="ruby-keyword kw">begin</span>
51:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
52:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">AccountService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetAccountInfo</span>.<span class="ruby-identifier">new</span>()
53:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getAccountInfo</span>(<span class="ruby-identifier">obj</span>)
54:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
55:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
56:                 <span class="ruby-value str">&quot;getAccountInfo Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
57:           <span class="ruby-keyword kw">end</span>
58:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-getClientAccountInfos">
                    
                    <a name="method-i-getClientAccountInfos"></a><b>getClientAccountInfos</b>()
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/AccountService.html#getClientAccountInfos">getClientAccountInfos</a>
method of the Account service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/AccountService.html#getClientAccountInfos">the
online documentation for this method</a>.
</p>
<p>
Returns:
</p>
<ul>
<li><p>
getClientAccountInfosReturn: SOAP::SOAPArray of <a
href="ClientAccountInfo.html">AdWords::V13::AccountService::ClientAccountInfo</a>
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-getClientAccountInfos_source')" id="l_method-i-getClientAccountInfos_source">show</a>
                        
                    </p>
                    <div id="method-i-getClientAccountInfos_source" class="dyn-source">
                        <pre>    <span class="ruby-comment cmt"># File lib/adwords4r/v13/AccountServiceWrapper.rb, line 69</span>
69:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getClientAccountInfos</span>()
70:           <span class="ruby-keyword kw">begin</span>
71:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
72:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">AccountService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetClientAccountInfos</span>.<span class="ruby-identifier">new</span>()
73:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getClientAccountInfos</span>(<span class="ruby-identifier">obj</span>)
74:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
75:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
76:                 <span class="ruby-value str">&quot;getClientAccountInfos Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
77:           <span class="ruby-keyword kw">end</span>
78:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-getClientAccounts">
                    
                    <a name="method-i-getClientAccounts"></a><b>getClientAccounts</b>()
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/AccountService.html#getClientAccounts">getClientAccounts</a>
method of the Account service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/AccountService.html#getClientAccounts">the
online documentation for this method</a>.
</p>
<p>
Returns:
</p>
<ul>
<li><p>
getClientAccountsReturn: SOAP::SOAPArray of SOAP::SOAPString
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-getClientAccounts_source')" id="l_method-i-getClientAccounts_source">show</a>
                        
                    </p>
                    <div id="method-i-getClientAccounts_source" class="dyn-source">
                        <pre>    <span class="ruby-comment cmt"># File lib/adwords4r/v13/AccountServiceWrapper.rb, line 89</span>
89:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getClientAccounts</span>()
90:           <span class="ruby-keyword kw">begin</span>
91:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
92:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">AccountService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetClientAccounts</span>.<span class="ruby-identifier">new</span>()
93:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getClientAccounts</span>(<span class="ruby-identifier">obj</span>)
94:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
95:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
96:                 <span class="ruby-value str">&quot;getClientAccounts Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
97:           <span class="ruby-keyword kw">end</span>
98:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-getMccAlerts">
                    
                    <a name="method-i-getMccAlerts"></a><b>getMccAlerts</b>()
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/AccountService.html#getMccAlerts">getMccAlerts</a>
method of the Account service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/AccountService.html#getMccAlerts">the
online documentation for this method</a>.
</p>
<p>
Returns:
</p>
<ul>
<li><p>
getMccAlertsReturn: SOAP::SOAPArray of <a
href="MccAlert.html">AdWords::V13::AccountService::MccAlert</a>
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-getMccAlerts_source')" id="l_method-i-getMccAlerts_source">show</a>
                        
                    </p>
                    <div id="method-i-getMccAlerts_source" class="dyn-source">
                        <pre>     <span class="ruby-comment cmt"># File lib/adwords4r/v13/AccountServiceWrapper.rb, line 109</span>
109:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getMccAlerts</span>()
110:           <span class="ruby-keyword kw">begin</span>
111:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
112:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">AccountService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetMccAlerts</span>.<span class="ruby-identifier">new</span>()
113:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getMccAlerts</span>(<span class="ruby-identifier">obj</span>)
114:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
115:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
116:                 <span class="ruby-value str">&quot;getMccAlerts Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
117:           <span class="ruby-keyword kw">end</span>
118:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-updateAccountInfo">
                    
                    <a name="method-i-updateAccountInfo"></a><b>updateAccountInfo</b>(accountInfo)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/AccountService.html#updateAccountInfo">updateAccountInfo</a>
method of the Account service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/AccountService.html#updateAccountInfo">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li><p>
accountInfo: <a
href="AccountInfo.html">AdWords::V13::AccountService::AccountInfo</a>
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-updateAccountInfo_source')" id="l_method-i-updateAccountInfo_source">show</a>
                        
                    </p>
                    <div id="method-i-updateAccountInfo_source" class="dyn-source">
                        <pre>     <span class="ruby-comment cmt"># File lib/adwords4r/v13/AccountServiceWrapper.rb, line 129</span>
129:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updateAccountInfo</span>(<span class="ruby-identifier">accountInfo</span>)
130:           <span class="ruby-keyword kw">begin</span>
131:             <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'accountInfo'</span>,
132:                 <span class="ruby-identifier">accountInfo</span>, <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">AccountService</span><span class="ruby-operator">::</span><span class="ruby-constant">AccountInfo</span>)
133:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
134:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">AccountService</span><span class="ruby-operator">::</span><span class="ruby-constant">UpdateAccountInfo</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">accountInfo</span>)
135:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">updateAccountInfo</span>(<span class="ruby-identifier">obj</span>)
136:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
137:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
138:                 <span class="ruby-value str">&quot;updateAccountInfo Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
139:           <span class="ruby-keyword kw">end</span>
140:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
</div>
    </div>
  </body>
</html>    